import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/hwVehicle/hwvehiclerefuellog/` + url, ...arg)

/**
 * 加油记录Api接口管理器
 *
 * @author cxk
 * @date  2024/02/05 15:12
 **/
export default {
	// 获取加油记录分页
	hwVehicleRefuelLogPage(data) {
		return request('page', data, 'get')
	},
	// 获取加油记录列表
	hwVehicleRefuelLogList(data) {
		return request('list', data, 'get')
	},
	// 提交加油记录表单 edit为true时为编辑，默认为新增
	hwVehicleRefuelLogSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除加油记录
	hwVehicleRefuelLogDelete(data) {
		return request('delete', data)
	},
	// 获取加油记录详情
	hwVehicleRefuelLogDetail(data) {
		return request('detail', data, 'get')
	}
}
